home *** CD-ROM | disk | FTP | other *** search
- property pTimer, pSpr
-
- on beginSprite me
- pSpr = sprite(me.spriteNum)
- end
-
- on mouseEnter me
- showDrinkContents(#progmeter)
- if not draggingIngredient() then
- pTimer = nowTicks()
- showToolTip(pSpr, #progmeter)
- end if
- end
-
- on mouseLeave me
- if not draggingIngredient() then
- hideToolTip()
- end if
- end
-
- on mouseWithin me
- if the mouseDown then
- exit
- end if
- refreshHelpWindow(#progmeter)
- if draggingIngredient() then
- else
- if tipTickRange(pTimer) then
- customToolTip(me, #left)
- else
- dismissToolTip()
- end if
- end if
- end
-
- on mouseDown me
- if draggingAnything() then
- replaceDraggingAnything()
- exit
- end if
- repeat while the stillDown
- refreshHelpWindow(#progmeter)
- if commandOrControlDown() then
- customToolTip(me, #limit)
- else
- if the shiftDown then
- customToolTip(me, #Current)
- else
- customToolTip(me, #left)
- end if
- end if
- updateStage()
- checkElapsedTime()
- end repeat
- end
-
- on customToolTip me, tipType
- global gBonusLimit, gBonusStartTime, gToolTip
- laserLoc = point(300, 400)
- if inRecipeMode() then
- tipType = #none
- end if
- case tipType of
- #left:
- tipText = "Time Left:" & RETURN & displayTimeUnits(timeLeftOnThisLevel(), 1)
- #limit:
- tipText = "Max Time:" & RETURN & displayTimeUnits(maxTimeOnThisLevel(), 1)
- #Current:
- tipText = "Elapsed:" & RETURN & displayTimeUnits(timeOnThisLevel(), 1)
- #none:
- tipText = "No Time Limit"
- end case
- sendSprite(gToolTip, #mShowToolTip, pSpr, tipText, laserLoc)
- end
-